package com.yjd.comm.easycard.model;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

import com.yjd.comm.base.model.Model;
import com.yjd.comm.easycard.enums.ECVerifyStateEnum;
import com.yjd.comm.util.DateUtil;

/**
 * <b>description</b>：易借卡用户信息审核表模型<br>
 * <b>time</b>：2015-04-11 00:56:17 <br>
 * <b>author</b>：  Song devpage@126.com
 */
public class EasycardVerifyModel extends Model {

	/**
	* @Fields serialVersionUID
	*/
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private Long easycard_basedata_id;
	private Long admin_id;
	private String admin_name;
	@NotNull(message="请选择审核步骤")
	private Integer verify_code;//审核步骤
	@NotEmpty(message="审核备注不能为空")
	private String verify_result;//审核备注
	private Long verify_time;
	
	/************以下未数据库字段***************/
	private Long base_id;
	private String verify_time_str;//审核时间
	private String verify_code_desc;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getEasycard_basedata_id() {
		return easycard_basedata_id;
	}
	public void setEasycard_basedata_id(Long easycard_basedata_id) {
		this.easycard_basedata_id = easycard_basedata_id;
	}
	public Long getAdmin_id() {
		return admin_id;
	}
	public void setAdmin_id(Long admin_id) {
		this.admin_id = admin_id;
	}
	public String getAdmin_name() {
		return admin_name;
	}
	public void setAdmin_name(String admin_name) {
		this.admin_name = admin_name;
	}
	public Integer getVerify_code() {
		return verify_code;
	}
	public void setVerify_code(Integer verify_code) {
		this.verify_code = verify_code;
	}
	public String getVerify_result() {
		return verify_result;
	}
	public void setVerify_result(String verify_result) {
		this.verify_result = verify_result;
	}
	public Long getVerify_time() {
		return verify_time;
	}
	public void setVerify_time(Long verify_time) {
		this.verify_time = verify_time;
	}
	public Long getBase_id() {
		return base_id;
	}
	public void setBase_id(Long base_id) {
		this.base_id = base_id;
	}
	public String getVerify_time_str() {
		return DateUtil.format(DateUtil.timestampToDate(getVerify_time()),
				DateUtil.PATTERN_yyyy_MM_dd_HH_mm_ss);
	}
	public void setVerify_time_str(String verify_time_str) {
		this.verify_time_str = verify_time_str;
	}
	public String getVerify_code_desc() {
		return ECVerifyStateEnum.getDesc(verify_code);
	}
	public void setVerify_code_desc(String verify_code_desc) {
		this.verify_code_desc = verify_code_desc;
	}
	 

}
